import request from '@/utils/request'

// 查询仰口基地设备巡检记录列表
export function listDeviceinspection(query) {
  return request({
    url: '/productionProcess/deviceinspection/list',
    method: 'get',
    params: query
  })
}

// 查询仰口基地设备巡检记录详细
export function getDeviceinspection(id) {
  return request({
    url: '/productionProcess/deviceinspection/' + id,
    method: 'get'
  })
}

// 新增仰口基地设备巡检记录
export function addDeviceinspection(data) {
  return request({
    url: '/productionProcess/deviceinspection',
    method: 'post',
    data: data
  })
}

// 修改仰口基地设备巡检记录
export function updateDeviceinspection(data) {
  return request({
    url: '/productionProcess/deviceinspection',
    method: 'put',
    data: data
  })
}
export function checkDeviceinspection(data) {
  return request({
    url: '/productionProcess/deviceinspection/check',
    method: 'put',
    data: data
  })
}
// 删除仰口基地设备巡检记录
export function delDeviceinspection(id) {
  return request({
    url: '/productionProcess/deviceinspection/' + id,
    method: 'delete'
  })
}
